UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All interactive programs (CGI) must be placed in a designated directory with appropriate permissions.


Overview

Finding ID Version Rule ID IA Controls Severity
V-2228 WG400 A22 SV-6928r4_rule DCPA-1 ECLP-1 Medium
Description
CGI scripts represents one of the most common and exploitable means of compromising a web server. By definition, CGI are executable by the operating system of the host server. While access control is provided via the web service, the execution of CGI programs is not otherwise limited unless the SA or Web Manager takes specific measures. CGI programs can access and alter data files, launch other programs and use the network. CGI programs can be written in any available programming language. C, PERL, PHP, Javascript, VBScript and shell (sh, ksh, bash) are popular choices.
STIG Date
APACHE SITE 2.2 for Unix 2011-12-12

Details

Check Text ( C-2786r4_chk )
To preclude access to the servers root directory, ensure the following directive is in the httpd.conf file. This entry will also stop users from setting up .htaccess files which can override security features configured in httpd.conf.


AllowOverride None


If the AllowOverride None is not set, this is a finding.
Fix Text (F-2277r2_fix)
Ensure the CGI (or equivalent i.e. scripts) directory has access controls IAW the WEB Services STIG.